import * as vscode from 'vscode';
import { LuaDebugAdapterDescriptorFactory } from './debugAdapter';

export function activate(context: vscode.ExtensionContext) {
	console.log('Congratulations, your extension "tstlvsplus" is now active!');
	const disposable = vscode.commands.registerCommand('tstlvsplus.tstlvsplus', () => {
		vscode.window.showInformationMessage('测试插件激活');
	});
	context.subscriptions.push(disposable);
	// 注册调试适配器工厂
	const debugFactory = new LuaDebugAdapterDescriptorFactory();
	context.subscriptions.push(
		vscode.debug.registerDebugAdapterDescriptorFactory('lua-cpp-mixed', debugFactory)
	);
}

// This method is called when your extension is deactivated
export function deactivate() {}
